package liang.jiaxin.com.constans;

/**
 * 常量表
 *
 * @author ShenHuaJie
 * @version $Id: Constants.java, v 0.1 2014-2-28 上午11:18:28 ShenHuaJie Exp $
 */
public interface Constants {
    /**
     * 异常信息统一头信息<br>
     * 非常遗憾的通知您,程序发生了异常
     */
    static final String Exception_Head = "OH,MY GOD! SOME ERRORS OCCURED! AS FOLLOWS :";

    /** 当前用户 */
    static final String CURRENT_USER = "CURRENT_USER";

    static final String LOGIN_TYPE = "LOGIN_TYPE";

    /**
     * 线人id
     */
    static final String LOGIN_INFORMANT_ID = "LOGIN_INFORMANT_ID";

    /**
     * 线人邀请码
     */
    static final String LOGIN_INFORMANT_INVITATION_CODE = "LOGIN_INFORMANT_INVITATION_CODE";

    /**
     * 登录集团
     */
    static final String LOGIN_GROUP_ID = "LOGIN_GROUP_ID";
    /**
     * 登录组织
     */
    static final String LOGIN_ORG_ID = "LOGIN_ORG_ID";

    /**
     * 登录组织类型
     */
    static final String LOGIN_ORG_TYPE = "LOGIN_ORG_TYPE";

    /**
     * 登录用户ID、
     *
     */
    static final String LOGIN_CUSTOMER_ID = "LOGIN_CUSTOMER_ID";

    /**
     * 登录用户姓名
     *
     */
    static final String REAL_NAME = "REAL_NAME";



    //用户小程序端
    /**
     *用户id
     */
    static final String CUSTOMER_ID="customerId";
    /**
     * 用户姓名（昵称）
     */
    static final String CUSTOMER_NAME="customerName";
    /**用户头像*/
    static final String CUSTOMER_PICURL="CUSTOMER_PICURL";
    /** 用户姓名 */
    static final String CURRENT_USER_REAL_NAME ="CURRENT_USER_REAL_NAME";
    static final String HEADER_TOKEN_KEY = "mayi-token";
    /** 缓存命名空间 */
    static final String CACHE_NAMESPACE = "mayi:";
    /** 缓存命名空间 */
    static final String SYSTEM_CACHE_NAMESPACE = "S:mayi:";
    /** 上次请求地址 */
    static final String PREREQUEST = CACHE_NAMESPACE + "PREREQUEST";
    /** 上次请求时间 */
    static final String PREREQUEST_TIME = CACHE_NAMESPACE + "PREREQUEST_TIME";
    /** 非法请求次数 */
    static final String MALICIOUS_REQUEST_TIMES = CACHE_NAMESPACE + "MALICIOUS_REQUEST_TIMES";
    /** TOKEN */
    static final String TOKEN_KEY = SYSTEM_CACHE_NAMESPACE + "TOKEN_KEY";
    /** 默认数据库密码加密key */
    static final String DB_KEY = "90139119";

    /** 默认支付密码加密key */
    static final String PAY_WORD_KEY = "19823764";


    /** 临时目录 */
    static final String TEMP_DIR = "/temp/";
    /** 请求报文体 */
    static final String REQUEST_BODY = "mayi.requestBody";

    static final String SYSTEM_EVENT_NAME = "system.eventName";


    static final String SPEECH_RECOGNITION_BY_PATH = "SPEECH_RECOGNITION_BY_PATH";

    static final String SPEECH_RECOGNITION_BY_FILE = "SPEECH_RECOGNITION_BY_FILE";

    static final String PCM = "pcm"; //不压缩

    static final String WAV = "wav";//不压缩,pcm编码

    static final String AMR = "amr";//压缩格式

    static final String DRUID_URL = "jdbc:avatica:remote:url=http://210.73.207.9:28082/druid/v2/sql/avatica/";

    /** 多级接口路径分隔符 */
    String MULTILEVEL_PATH_SEPARATOR = "/";
    /**
     * 项目类型
     */
    String SYSTEM_PROJECT_TYPE = "system.project.type";
    /**
     * 项目类型
     */
    String SYSTEM_PROJECT_TYPE_CRM_DZ = "crm-dz";

    /**
     * 组织类型
     */
    public static class ORG_TYPE {
        /**
         * 管理员
         */
        public static final Integer Manager = 0;


        /**
         * 省
         */
        public static final Integer PROVINCE = 1;
        /**
         * 市
         */
        public static final Integer CITY = 2;
        /**
         * 区
         */
        public static final Integer REGION = 3;

        /**
         * 路名
         */
        public static final Integer ROADNAME = 4;
        /**
         * 楼宇
         */
        public static final Integer BUILDING = 5;
    }
    /**
     * 来源类型
     */
    public static class SOURCE_TYPE{
        /**
         * 自然进店
         */
        public static final int NATRUE_TO_SHOP = 0;
        /**
         * 老客户转介绍
         */
        public static final int INTRODUCE = 2;
    }

    /**
     * 产品状态
     */
    public static class PRODUCT_STATE{
        // 是
        public static final Integer USING = 1;
        // 否
        public static final Integer DISABLE = 0;
    }

    /**
     * 产品类型状态
     */
    public static class PRODUCTCLASSIFY_STATE{
        // 是
        public static final Integer USING = 1;
        // 否
        public static final Integer DISABLE = 0;
    }

    /**
     * 产品标签类型状态
     */
    public static class PRODUCTTAGINFO_STATE{
        // 是
        public static final Integer USING = 1;
        // 否
        public static final Integer DISABLE = 0;
    }

    /**
     * 附加产品标签类型状态
     */
    public static class AUGMENTEDPRODUCTTAGINFO_STATE{
        // 是
        public static final Integer USING = 1;
        // 否
        public static final Integer DISABLE = 0;
    }

    /**
     * 员工类型状态
     */
    public static class EMPLOYEE_STATE{
        // 启用
        public static final Integer USING = 1;
        // 禁用
        public static final Integer DISABLE = 0;
    }
}
